<?php

/**
 * @name: HOTN Scroller
 * @author: HammerOnTheNail
 * @link: http://code.google.com/p/hotnscroller/
 */

$title .= " / ".HOTN_SCROLLER_ADMIN_MENU_ITTEM_ADD;
	
// Form összeillesztése
$data = array(
	"type" => "file_form",
	"method" => "post",
	"action" =>  e_PLUGIN ."hotn_scroller/admin/admin_action.php",
	"hidden" => array(
						"action" => "add"
				),
	"data" => array(
				array(
					"type" => "text",
					"name" => "title",
					"text" => HOTN_SCROLLER_ADMIN_ITTEM_TABLE_TITLE
				),
				array(
					"type" => "textarea",
					"name" => "text",
					"bbcode" => TRUE,
					"text" => HOTN_SCROLLER_ADMIN_ITTEM_TABLE_TEXT
				),
				array(
					"type" => "text",
					"name" => "link",
					"text" => HOTN_SCROLLER_ADMIN_ITTEM_TABLE_LINK
				),
				array(
					"type" => "text",
					"name" => "link_type",
					"text" => HOTN_SCROLLER_ADMIN_ITTEM_TABLE_LINK_TYPE
				),
				array(
					"type" => "image",
					"name" => "file_userfile[]",
					"text" => HOTN_SCROLLER_ADMIN_ITTEM_TABLE_IMAGE
				),
				array(
					"type" => "submit",
					"value" => HOTN_SCROLLER_ADMIN_ITTEM_TABLE_SUBMIT
				)
			)
);

// Form megjelenítése
$text = $HOTN_SCROLLER_FORM->show_form($data);


$text = "<div style='text-align: center;'>".$text."</div>";
?>